<script src="jquery-1.10.1.min.js" type="text/javascript"></script>

<script type="text/javascript">

  jQuery(document).ready(function(){
    $('#copyId').on('click',function(){
      var txt1 = $('#div1').html();
      $('#div2').html(txt1);
    });
  });

</script>

<span id="copyId">Copy</span>
<hr>

<div id="div1" style="border:2px solid green;background:lightgreen">
  This is dummy content.This is dummy content.This is <strong>dummy</strong> content.This is dummy <a href="#">content</a>.This is dummy content.This is dummy content.This is dummy content.This is dummy content.<h4>This is dummy content.</h4>This is dummy content.This is dummy content.
</div>

<hr>
<div id="div2" style="border:2px solid red;background:pink"></div>
